#pragma once
#include"Comm.hpp"


class client
{
public:
    client(): _fd(gdefultd)
    {
    }
    bool OpenPipeForWrite()
    {
         _fd = OpenPipe(gForWrite);
        if(_fd < 0) return false;
        return true;
    }
    int RecvPipe(std::string &in)
    {
        return :: write(_fd,in.c_str(),in.size());
    }
    void ClosePipe()
    {
        ClosePipeHelper(_fd);
    }
    ~client()
    {
    }

private:
    int _fd;
};